package kk.yiyi.myapplication;

import java.util.List;

public class LocationBean {
    private int code;
    private String status;
    private String error;
    private List<Contents> content;

    public LocationBean(int code, String status, String error, List<Contents> content) {
        this.code = code;
        this.status = status;
        this.error = error;
        this.content = content;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getError() {
        return error;
    }

    public void setError(String error) {
        this.error = error;
    }

    public List<Contents> getContent() {
        return content;
    }

    public void setContent(List<Contents> content) {
        this.content = content;
    }

    public class Contents{
        private int id;
        private String area_name;
        private String agency_status;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getArea_name() {
            return area_name;
        }

        public void setArea_name(String area_name) {
            this.area_name = area_name;
        }

        public String getAgency_status() {
            return agency_status;
        }

        public void setAgency_status(String agency_status) {
            this.agency_status = agency_status;
        }

        public Contents(int id, String area_name, String agency_status) {
            this.id = id;
            this.area_name = area_name;
            this.agency_status = agency_status;
        }

        @Override
        public String toString() {
            return "Contents{" +
                    "id=" + id +
                    ", area_name='" + area_name + '\'' +
                    ", agency_status='" + agency_status + '\'' +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "ProvinceBean{" +
                "code=" + code +
                ", status='" + status + '\'' +
                ", error='" + error + '\'' +
                ", content=" + content +
                '}';
    }
}
